package com.yupi.referral.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yupi.referral.model.entity.ReferralAnswer;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author ZRETC
* @description 针对表【referral_answer(内推响应)】的数据库操作Mapper
* @createDate 2024-07-04 14:14:28
* @Entity com.yupi.referral.model.entity.ReferralAnswer
*/
public interface ReferralAnswerMapper extends BaseMapper<ReferralAnswer> {


    /**
     * 根据referralId返回对应的所有address
     *
     * @param referralId
     * @return
     */
    @Select("SELECT address FROM referral_answer WHERE referralId = #{referralId}")
    List<String> getAddressListByReferralId(@Param("referralId") Long referralId);
}




